<?php
namespace slinks\extensions\onecms\core\templating;


interface IResourceManager {
	
	/**
	 * Adds the definition of a linked external script to the document object. Duplicates are ignored.
	 * 
	 * @param string $url URL of script.
	 * @param string $type MIME type of script.	'text/javascript'
	 */
	public function addScript($url, $type='text/javascript');

        public function addScriptDeclaration($content);
        
	/**
	 * Adds the definition of a linked external stylesheet to the document. Duplicates are ignored.
	 * 
	 * @param string $url URL of stylesheet.
	 * @param string $type MIME type of script.	'text/css'
	 * @param string $media Media type that the stylesheet applies to.
	 */
	public function addStyleSheet($url, $type='text/css',$media=null);
	
	
	public function getBaseURL();
	
}